how to add legends in scope